﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using PPI.Entities.Inspections;
using VMind.Global;

namespace PPI.Client.Logic.Inspection
{
    public class LInspectionResultType
    {
        public static List<EResultType> SelectAllIdName()
        {
            List<EResultType> listResultTypes = new List<EResultType>();

            DataTable dt = WebConsumer.Inspection.WInspectionResultType.SelectAllIdName().Tables[0];

            foreach (DataRow dr in dt.Rows)
            {
                EResultType resultType = new EResultType(ConvertHelper.ToInt32(dr["Vendor_InspVisit_XmissionStructures_ResultTypeId"]), dr["Name"].ToString());
                listResultTypes.Add(resultType);

            }
            return listResultTypes;
        }

        
    }
}
